Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add disable-infra annotation to hive clusterdeployments #3985

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

tsatam
Copy link
Collaborator

@tsatam tsatam commented Dec 2, 2024

Which issue this PR addresses:

Fixes ARO-11607

What this PR does / why we need it:

Adds the hive.openshift.io/infra-disabled annotation to our Hive ClusterDeployments (for both new installs as well as adopted clusters), set to true. This is required in order to disable the hibernation controller, which does not currently work for ARO MIWI clusters.

Note

This PR currently disables the hibernation controller for all cluster installations (CSP and MIWI) - we do not use this functionality in ARO's implementation of Hive today.

See corresponding change in Hive to add this annotation for more details: openshift/hive#2501

Test plan for issue:

  • E2E test was added to ensure the annotation is set
  • E2E cluster creation ensures the cluster is installed successfully with this annotation set

Is there any documentation that needs to be updated for this PR?

No

How do you know this will function as expected in production?

E2E tests outlined above

@tsatam
Copy link
Collaborator Author

tsatam commented Dec 2, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

cadenmarchese
cadenmarchese previously approved these changes Dec 3, 2024
pkg/hive/resources.go Outdated Show resolved Hide resolved
@tsatam
Copy link
Collaborator Author

tsatam commented Dec 3, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@kimorris27 kimorris27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I only left my nit because there's a formatting issue that needs to be fixed anyway.

pkg/hive/resources.go Outdated Show resolved Hide resolved
@github-actions github-actions bot added the needs-rebase branch needs a rebase label Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

Please rebase pull request.

Co-authored-by: Caden Marchese <[email protected]>
@tsatam tsatam force-pushed the tsatam/ARO-11607-hive-disable-infra branch from 5e82dca to 86fc4cb Compare December 4, 2024 19:16
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Dec 4, 2024
@tsatam
Copy link
Collaborator Author

tsatam commented Dec 4, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

pkg/hive/install.go Outdated Show resolved Hide resolved
@tsatam tsatam force-pushed the tsatam/ARO-11607-hive-disable-infra branch from aba6871 to 9296285 Compare December 4, 2024 21:31
@tsatam
Copy link
Collaborator Author

tsatam commented Dec 4, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kimorris27 kimorris27 merged commit eb2ec4c into master Dec 5, 2024
21 checks passed
@kimorris27 kimorris27 deleted the tsatam/ARO-11607-hive-disable-infra branch December 5, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants